import request from '@/utils/request'

// 查询SysCgCpDim列表
export function listDim(query) {
  return request({
    url: '/system/cpfb/list',
    method: 'get',
    params: query
  })
}

// 查询SysCgCpDim详细
export function getDim(yongyouCode) {
  return request({
    url: '/system/cpfb/' + yongyouCode,
    method: 'get'
  })
}

// 新增SysCgCpDim
export function addDim(data) {
  return request({
    url: '/system/cpfb',
    method: 'post',
    data: data
  })
}

// 修改SysCgCpDim
export function updateDim(data) {
  return request({
    url: '/system/cpfb',
    method: 'put',
    data: data
  })
}

// 删除SysCgCpDim
export function delDim(yongyouCode) {
  return request({
    url: '/system/cpfb/' + yongyouCode,
    method: 'delete'
  })
}
